import pandas as pd


def find_classes(courses: pd.DataFrame) -> pd.DataFrame:
    df = courses.groupby(by='class').count().reset_index()
    return df.loc[df['student'] >= 5, ['class']]















